package com.sikaryofficial.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sikaryofficial.backend.domain.dto.req.information.ArticleAssociateListReq;
import com.sikaryofficial.backend.domain.entity.Store;
import com.sikaryofficial.backend.domain.vo.store.StoreMetricVO;
import com.sikaryofficial.system.api.model.infomation.ArticleAssociateResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 店铺Mapper接口
 *
 * @author qinjinyuan
 * @date 2023-10-27
 */
public interface StoreMapper extends BaseMapper<Store> {

	/**
	 * 查询店铺列表
	 *
	 * @param req 店铺搜索
	 * @return 店铺集合
	 */
	IPage<ArticleAssociateResp> associateList(@Param("req") ArticleAssociateListReq req);

	/**
	 * 获取推荐店铺
	 * @return
	 */
	List<StoreMetricVO> getRecommendMetrics();

}
